// 商品接口模块

// 引入工具函数
import request from '@/utils/request'

// 1.添加分类
export const addGoodsCateReq = data => {
  return request({
    method: 'post',
    data,
    url: '/goods/addcate',
  })
}

// 2.获取分类列表
export const getGoodsListReq = params => {
  return request({
    method: 'get',
    params,
    url: '/goods/catelist',
  })
}

// 3.删除分类
export const delGoodsCateReq = params => {
  return request({
    method: 'get',
    params,
    url: '/goods/delcate',
  })
}

// 4.修改分类
export const editGoodsCateReq = data => {
  return request({
    method: 'post',
    data,
    url: '/goods/editcate',
  })
}
